using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Gx.Model.Entity
{
    [Table("LK_CostTypes")]
    public class LKCostTypes
    {
        [Key]
        private int _id;
        /// <summary>
        /// Id
        /// </summary>
        [Column("Id")]
        public int Id
        {
            get
            {
                return _id;
            }
            set { _id = value; }
        }


        private string _costTypeName;
        /// <summary>
        /// 费用类别名称
        /// </summary>
        [Column("CostTypeName")]
        public string CostTypeName
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_costTypeName))
                    _costTypeName = string.Empty;
                return _costTypeName;
            }
            set { _costTypeName = value; }
        }


        private decimal _unitPrice;
        /// <summary>
        /// 单价
        /// </summary>
        [Column("UnitPrice")]
        public decimal UnitPrice
        {
            get
            {
                return _unitPrice;
            }
            set { _unitPrice = value; }
        }


        private int _unit;
        /// <summary>
        /// 单位;
        /// </summary>
        [Column("Unit")]
        public int Unit
        {
            get
            {
                return _unit;
            }
            set { _unit = value; }
        }


        private string _unitName;
        /// <summary>
        /// 单位名称
        /// </summary>
        [Column("UnitName")]
        public string UnitName
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_unitName))
                    _unitName = string.Empty;
                return _unitName;
            }
            set { _unitName = value; }
        }


        private string _remark;
        /// <summary>
        /// 描述
        /// </summary>
        [Column("Remark")]
        public string Remark
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_remark))
                    _remark = string.Empty;
                return _remark;
            }
            set { _remark = value; }
        }


        private bool _isSysTem;
        /// <summary>
        /// 是否系统
        /// </summary>
        [Column("IsSysTem")]
        public bool IsSysTem
        {
            get
            {
                return _isSysTem;
            }
            set { _isSysTem = value; }
        }


        private bool _isDeleted;
        /// <summary>
        /// 是否删除
        /// </summary>
        [Column("IsDeleted")]
        public bool IsDeleted
        {
            get
            {
                return _isDeleted;
            }
            set { _isDeleted = value; }
        }


        private System.DateTime _createTime;
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("CreateTime")]
        public System.DateTime CreateTime
        {
            get
            {
                if (_createTime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _createTime;
            }
            set { _createTime = value; }
        }


        private int _createUserId;
        /// <summary>
        /// 创建人id
        /// </summary>
        [Column("CreateUserId")]
        public int CreateUserId
        {
            get
            {
                return _createUserId;
            }
            set { _createUserId = value; }
        }


        private string _createUser;
        /// <summary>
        /// 创建人
        /// </summary>
        [Column("CreateUser")]
        public string CreateUser
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_createUser))
                    _createUser = string.Empty;
                return _createUser;
            }
            set { _createUser = value; }
        }


    }
}

